home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABUSESRC.ZIP / AbuseSrc / macabuse / imlib / include / sprite.hpp < prev    next >
C/C++ Source or Header  |  1997-05-20  |  652b  |  33 lines

  1. #ifndef __SPRITE_HPP
  2. #define __SPRITE_HPP
  3. #include "macs.hpp"
  4. #include "image.hpp"
  5. #include "linked.hpp"
  6.  
  7. class sprite : public linked_node
  8. {
  9. public:
  10.   image *visual,*save;
  11.   int x,y;
  12.   sprite(image *Screen, image *Visual, int X, int Y);
  13.   void get_background();
  14.   void restore_background();
  15.   void draw();
  16.   void change_visual(image *Visual, int delete_old=0);
  17.   ~sprite();
  18. } ;
  19.  
  20. class sprite_controller
  21. {
  22. public :
  23.   linked_list sprites;
  24.   void add_sprite(sprite *sp);
  25.   void remove_sprites();
  26.   void get_backgrounds();
  27.   void put_sprites();
  28.   void bring_front(sprite *sp);
  29.   void delete_sprite(sprite *sp);
  30. } ;
  31. #endif
  32.  
  33.